package com.neouton.crm.sales.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neouton.crm.sales.entity.SalesChangeVO;
import com.neouton.crm.sales.mapper.SalesChangeMapper;
import com.neouton.crm.sales.service.SalesChangeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SalesChangeServiceImpl extends ServiceImpl<SalesChangeMapper, SalesChangeVO> implements SalesChangeService {
    @Resource
    private SalesChangeMapper salesChangeMapper;
    @Resource
    private SalesChangeMapper changeMapper;

    @Override
    public boolean insert(SalesChangeVO record) {
        return salesChangeMapper.insert(record) == 1;
    }

    @Override
    public List<SalesChangeVO> queryOppAnProChangeInfo(Integer oppId){
        return changeMapper.queryOppAnProChangeInfo(oppId);
    }
}
